<?php
/**
 * Created by PhpStorm.
 * User: yuanjie
 * Date: 15/9/24
 * Time: 上午9:03
 */
class SmsSendRecords extends Eloquent
{
    protected $table = "sms_send_records";

    public static function insSmsRecord($data){
        return SmsSendRecords::insert($data)->id;
    }

    public static function updateSmsRecord($id,$data){
        return SmsSendRecords::where('id',$id)->update($data);
    }

    public static function  selectSmsRecord($id){
        return SmsSendRecords::where('id',$id)->select('status')->first();
    }
}